import java.lang.reflect.Array;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Scanner;

public class Main {
    public static String myPrint(double n, int t1) {
        String s = "%." + String.valueOf(t1) + "f";
        return String.format(s, n);
    }

    public static String myPrint(double n, int t1, int t2) {
        String s = "%" + String.valueOf(t1) + "." + String.valueOf(t2) + "f";
        return String.format(s, n);
    }

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        float f = scanner.nextFloat();
        for(int i=0;i<3;i++){
            for(int j=0;j<=i;j++){
                System.out.print(myPrint(f, 6,2) + " ");
            }
            System.out.println();
        }
    }
}